package com.example.medical_delivery_system.dao;

import com.example.medical_delivery_system.entity.Product;
import com.example.medical_delivery_system.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Param：20201003013
 * Author：李镇荣
 * Data：2022/12/21
 */
public interface AdminProductMapper {

    int deleteByPrimaryKey(Long productId);

    int insert(Product record);

    int insertSelective(Product  record);

    Product selectByPrimaryKey(Long productId);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> findProductList(PageQueryUtil pageUtil);

    int getTotalProducts(PageQueryUtil pageUtil);

    int deleteBatch(Long[] ids);

    List<Product> findProductsByNum(@Param("number") int number);
}
